﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProgNetComponentsDx.Enums;

namespace ProgNetComponentsDx.Mode.Design
{
    public class FormModeUIEditor : ProgNetComponents.Design.Editors.BaseListEditor
    {
        protected override bool AlwaysRefreshItems
        {
            get
            {
                return false;
            }
        }
        protected override bool FillCollection(ProgNetComponents.Collections.NamedObjectCollection collection, System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            foreach (FormMode m in Enum.GetValues(typeof(FormMode)))
            {
                if (m != FormMode.All)
                {
                    collection.Add(m.ToString(), m);
                }
            }
            return true;
        }
    }
}
